<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var str = ['关羽','张飞','马超','赵云','黄忠','刘备','姜维'];
    for (var i =0;i < str.length;i++){
        console.log(str[i]);
    }
</script>
<body>

</body>
</html>